package com.kgc.xsProvider.controller;

import com.kgc.basic.util.ResponseMsg;
import com.kgc.xs.remote.SalesOrderExecutionStatusRemote;
import com.kgc.xsProvider.service.SalesOrderExecutionStatusService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class SalesOrderExecutionStatusController implements SalesOrderExecutionStatusRemote {

    private Logger logger = LoggerFactory.getLogger(SalesOrderExecutionStatusController.class);

    @Autowired
    private SalesOrderExecutionStatusService salesOrderExecutionStatusService;

    @Override
    public ResponseMsg selectSalesOrderExecutionStatusByPage(Map<String, Object> params) {
        logger.info("SalesOrderExecutionStatusController selectByPage params:{}", params);
        ResponseMsg msg = salesOrderExecutionStatusService.selectSalesOrderExecutionStatusByPage(params);
        logger.debug("SalesOrderExecutionStatusController selectByPage msg:{}", msg);
        return msg;
    }
}
